-
Notifications
You must be signed in to change notification settings - Fork 22
Fix import errors introduced by sklearn 1.5 #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
df70dad
to
a6705e8
Compare
a6705e8
to
7dd4892
Compare
Some issues seems to be unrelated. Do you have an idea @agoscinski ? |
7dd4892
to
08393a0
Compare
My point is that, this PR has nothing to do with this issue. It just made it visible. But if you can fix it fast, sure go ahead. I would just not wait another week, since other PRs are in the pipeline. |
Fixed the test. |
I am missing something. I can understand that PCA has a sign flip because of orthogonalization but how can the residual be negative if it was fitted on the same data ( |
I think my misunderstanding came from ignoring the fact that the convex hull is created on |
c7c1973
to
f7ded60
Compare
Thanks @ceriottm for fixing it! I just rephrased the commit message a bit. Will merge as soon as CI passes |
cb4f40a
to
445ee87
Compare
With sklearn version 1.5.0 the check_pandas_support function has been moved to util._optional_dependencies. This has been adapted in our code.
…lip(s) in PCA With version changes of the of sklearn the PCA output can have sign flips of the principal components. Now we only compare the absolute value to make the test invariant to such sign changes.
445ee87
to
4c50009
Compare
With sklearn version 1.5 the check_pandas_support function has been moved to util._optional_dependencies. This has been adapted in this PR. I would still try to be backwards compatible to 1.* so I put an if then else in the import
Contributor (creator of PR) checklist
For Reviewer
📚 Documentation preview 📚: https://scikit-matter--229.org.readthedocs.build/en/229/